home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / Headers / XDynArray.h < prev    next >
MacBinary  |  1999-07-13  |  1.5 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 13 21:53:55 1999, modified Tue Jul 13 21:53:55 1999, creator 'CWIE', type ASCII, 881 bytes "XDynArray.h" , at 0x3f1 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 58 44 79 6e 41 72 | 72 61 79 2e 68 00 00 00 |..XDynAr|ray.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 71 00 | 00 01 9a b3 b1 9e 33 b3 |......q.|......3.|
|00000060| b1 9e 33 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..3.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 31 11 00 00 |........|....1...|
|00000080| 23 69 66 6e 64 65 66 20 | 58 44 79 6e 41 72 72 61 |#ifndef |XDynArra|
|00000090| 79 5f 48 0d 23 64 65 66 | 69 6e 65 20 58 44 79 6e |y_H.#def|ine XDyn|
|000000a0| 41 72 72 61 79 5f 48 0d | 0d 0d 23 69 6e 63 6c 75 |Array_H.|..#inclu|
|000000b0| 64 65 20 22 55 74 69 6c | 53 74 72 2e 68 22 0d 0d |de "Util|Str.h"..|
|000000c0| 0d 0d 0d 0d 63 6c 61 73 | 73 20 58 44 79 6e 41 72 |....clas|s XDynAr|
|000000d0| 72 61 79 20 3a 20 70 72 | 6f 74 65 63 74 65 64 20 |ray : pr|otected |
|000000e0| 55 74 69 6c 53 74 72 20 | 7b 0d 0d 0d 09 70 75 62 |UtilStr |{....pub|
|000000f0| 6c 69 63 3a 09 0d 09 09 | 2f 2f 20 54 68 65 20 61 |lic:....|// The a|
|00000100| 72 67 75 6d 65 6e 74 20 | 73 70 65 63 69 66 69 65 |rgument |specifie|
|00000110| 64 20 68 6f 77 20 62 69 | 67 20 65 61 63 68 20 65 |d how bi|g each e|
|00000120| 6c 65 6d 65 6e 74 20 69 | 73 20 69 6e 20 74 68 69 |lement i|s in thi|
|00000130| 73 20 61 72 72 61 79 20 | 0d 09 09 09 09 09 09 09 |s array |........|
|00000140| 09 58 44 79 6e 41 72 72 | 61 79 28 20 6c 6f 6e 67 |.XDynArr|ay( long|
|00000150| 20 69 6e 52 65 63 53 69 | 7a 65 20 29 3b 0d 09 09 | inRecSi|ze );...|
|00000160| 09 09 09 09 09 09 09 09 | 0d 09 09 2f 2f 20 52 65 |........|...// Re|
|00000170| 74 75 72 6e 73 20 74 68 | 65 20 64 69 6d 6d 65 64 |turns th|e dimmed|
|00000180| 20 73 69 7a 65 20 6f 66 | 20 74 68 69 73 20 41 72 | size of| this Ar|
|00000190| 72 61 79 0d 09 09 69 6e | 6c 69 6e 65 20 6c 6f 6e |ray...in|line lon|
|000001a0| 67 09 09 09 09 43 6f 75 | 6e 74 28 29 20 63 6f 6e |g....Cou|nt() con|
|000001b0| 73 74 09 09 09 09 09 09 | 09 7b 20 72 65 74 75 72 |st......|.{ retur|
|000001c0| 6e 20 6d 4e 75 6d 45 6c | 65 6d 65 6e 74 73 3b 09 |n mNumEl|ements;.|
|000001d0| 09 09 7d 0d 09 0d 09 09 | 2f 2f 20 45 66 66 65 63 |..}.....|// Effec|
|000001e0| 74 69 76 65 6c 79 20 6d | 61 6b 65 73 20 74 68 65 |tively m|akes the|
|000001f0| 20 6c 65 6e 67 74 68 20 | 6f 66 20 74 68 69 73 20 | length |of this |
|00000200| 61 72 72 61 79 20 7a 65 | 72 6f 2e 0d 09 09 76 6f |array ze|ro....vo|
|00000210| 69 64 09 09 09 09 09 52 | 65 6d 6f 76 65 41 6c 6c |id.....R|emoveAll|
|00000220| 28 29 20 09 09 09 09 09 | 09 09 7b 20 57 69 70 65 |() .....|..{ Wipe|
|00000230| 28 29 3b 20 20 6d 4e 75 | 6d 45 6c 65 6d 65 6e 74 |(); mNu|mElement|
|00000240| 73 20 3d 20 30 3b 09 7d | 0d 09 09 0d 09 09 2f 2f |s = 0;.}|......//|
|00000250| 20 09 41 6c 6c 6f 77 73 | 20 65 61 73 79 20 64 79 | .Allows| easy dy|
|00000260| 6e 61 6d 69 63 20 61 72 | 72 61 79 20 75 73 61 67 |namic ar|ray usag|
|00000270| 65 2e 20 20 53 69 6d 70 | 6c 65 20 75 73 65 20 61 |e. Simp|le use a|
|00000280| 6e 79 20 69 6e 64 65 78 | 20 61 6e 64 20 58 50 74 |ny index| and XPt|
|00000290| 72 4c 69 73 74 20 77 69 | 6c 6c 20 65 78 70 61 6e |rList wi|ll expan|
|000002a0| 64 20 74 6f 20 6d 65 65 | 74 20 74 68 61 74 20 73 |d to mee|t that s|
|000002b0| 69 7a 65 2e 0d 09 09 2f | 2f 09 49 6d 70 74 3a 09 |ize..../|/.Impt:.|
|000002c0| 5a 65 72 6f 20 62 61 73 | 65 64 20 69 6e 64 65 78 |Zero bas|ed index|
|000002d0| 69 6e 67 2e 0d 09 09 2f | 2f 09 4e 6f 74 65 3a 09 |ing..../|/.Note:.|
|000002e0| 49 6e 64 65 78 73 20 62 | 65 6c 6f 77 20 30 20 6c |Indexs b|elow 0 l|
|000002f0| 65 61 64 20 74 6f 20 64 | 69 73 61 73 74 65 72 3b |ead to d|isaster;|
|00000300| 0d 09 09 2f 2f 09 4e 6f | 74 65 3a 09 53 69 6e 63 |...//.No|te:.Sinc|
|00000310| 65 20 63 61 6c 6c 65 72 | 20 68 61 73 20 61 63 63 |e caller| has acc|
|00000320| 65 73 73 20 74 6f 20 63 | 68 61 6e 67 65 73 20 76 |ess to c|hanges v|
|00000330| 61 6c 75 65 73 2c 20 61 | 6e 79 20 63 75 72 72 65 |alues, a|ny curre|
|00000340| 6e 74 20 73 6f 72 74 69 | 6e 67 20 66 63 6e 20 69 |nt sorti|ng fcn i|
|00000350| 73 20 6e 6f 74 20 75 73 | 65 64 0d 09 09 76 6f 69 |s not us|ed...voi|
|00000360| 64 2a 09 09 09 09 09 6f | 70 65 72 61 74 6f 72 5b |d*.....o|perator[|
|00000370| 5d 20 28 20 63 6f 6e 73 | 74 20 6c 6f 6e 67 20 69 |] ( cons|t long i|
|00000380| 6e 49 6e 64 65 78 20 29 | 3b 09 09 09 0d 0d 0d 0d |nIndex )|;.......|
|00000390| 09 70 72 6f 74 65 63 74 | 65 64 3a 0d 09 09 6c 6f |.protect|ed:...lo|
|000003a0| 6e 67 09 09 09 09 09 6d | 4e 75 6d 45 6c 65 6d 65 |ng.....m|NumEleme|
|000003b0| 6e 74 73 3b 0d 09 09 6c | 6f 6e 67 09 09 09 09 09 |nts;...l|ong.....|
|000003c0| 6d 52 65 63 53 69 7a 65 | 3b 0d 09 09 0d 09 09 73 |mRecSize|;......s|
|000003d0| 74 61 74 69 63 20 76 6f | 69 64 2a 09 09 09 73 44 |tatic vo|id*...sD|
|000003e0| 75 6d 6d 79 3b 0d 7d 3b | 0d 0d 0d 23 65 6e 64 69 |ummy;.};|...#endi|
|000003f0| 66 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |f.......|........|
|00000400| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000410| 00 00 00 0f 88 f5 c0 06 | 00 02 22 81 66 81 7d 86 |........|..".f.}.|
|00000420| 72 00 00 00 0d 83 3c c0 | 06 00 02 23 54 65 86 73 |r.....<.|...#Te.s|
|00000430| 00 00 00 0f 82 06 c0 06 | 00 02 23 80 90 80 a5 86 |........|..#.....|
|00000440| 74 00 00 00 0f 88 be c0 | 06 00 02 23 80 a6 80 b9 |t.......|...#....|
|00000450| 86 75 00 00 00 0f 86 eb | c0 06 00 02 23 80 ba 80 |.u......|....#...|
|00000460| cd 86 76 00 00 00 0f 82 | 4c c0 06 00 02 23 80 ce |..v.....|L....#..|
|00000470| 80 e3 86 77 00 00 00 0f | 8b 14 c0 06 00 02 23 80 |...w....|......#.|
|00000480| e4 80 fa 86 78 00 00 00 | 0f 8a 7b c0 06 00 02 23 |....x...|..{....#|
|00000490| 80 fb 81 10 86 79 00 00 | 00 0f 81 bd c0 06 00 02 |.....y..|........|
|000004a0| 23 81 11 81 26 86 7a 00 | 00 00 0f 86 56 c0 06 00 |#...&.z.|....V...|
|000004b0| 02 23 81 27 81 40 86 7b | 00 00 00 0f 87 c7 c0 06 |.#.'.@.{|........|
|000004c0| 00 02 23 81 41 81 58 86 | 7c 00 00 00 0f 85 ea c0 |..#.A.X.||.......|
|000004d0| 06 00 02 23 81 59 81 6f | 86 7d 00 00 00 0f 87 45 |...#.Y.o|.}.....E|
|000004e0| c0 06 00 02 22 81 b9 81 | d9 86 7e 00 00 00 0f 88 |...."...|..~.....|
|000004f0| 78 c0 06 00 02 22 86 10 | 86 71 86 7f 00 00 00 0f |x...."..|.q......|
|00000500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 03 | 00 04 00 3e 00 0d 02 43 |........|...>...C|
|00000530| 02 63 00 3e 00 0d 02 43 | 02 63 b3 84 47 71 00 00 |.c.>...C|.c..Gq..|
|00000540| 01 51 00 00 01 51 00 00 | 00 00 01 00 00 00 00 04 |.Q...Q..|........|
|00000550| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000560| 00 00 00 46 04 fe 93 3c | 19 58 00 00 00 1c 00 46 |...F...<|.X.....F|
|00000570| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000580| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000590| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+